#!/bin/bash

# 设置UTF-8编码环境
export LANG=zh_CN.UTF-8
export LC_ALL=zh_CN.UTF-8
export JAVA_OPTS="-Dfile.encoding=UTF-8 -Dconsole.encoding=UTF-8 -Dsun.stdout.encoding=UTF-8 -Dsun.stderr.encoding=UTF-8"
export MAVEN_OPTS="-Dfile.encoding=UTF-8"

echo "正在启动PDF文档转换器服务..."
echo "Setting UTF-8 encoding for Java and Maven..."

# 启动应用
mvn spring-boot:run